<div class="page-content page-content-cart">
 
  <div class='shopping-cart'>
  <div class="title">
      <a :href="'/pages/takeout?store_id='+shop_info.store_id+'#/'+shop_info.shop_id" class="s_left buy-title">{{shop_info.name}}  <img style="    height: 10px;"  class='arrowright' src='/pages/shop/images/arrowright.png' ></a>
      <span class="dishes s_right" @click='clearCart'>清空购物车</span>
    </div>
    
     <div class="errormsgDiv" v-if="empty==1">
                            <div class="errormsg">\（￣︶￣）/</div>
                            <div class="errormsg2">当前购物车空荡荡的</div>
                            <div class="errormsg2">你快去犒劳一下自己吧</div>
       </div>
      
    
   <div  class="order-list" wx:else>
          <div class="ul" style="height: auto; overflow: visible;">
          
         <!-- goods-item -->
          <div v-for="(item,idx) in shoppingCartList.list" class="goods-item" >

             <a class="goods-item-img" :href="'/pages/shop/?store_id='+app.getStoreId()+'#/goods/'+item.goods_id" style="display: block;"> <img  :src="item.default_img+'?imageView2/1/w/140/h/160'" /></a>
             <div class="goods-item-info">          
		           <a :href="'/pages/shop/?store_id='+app.getStoreId()+'#/goods/'+item.goods_id" style="display: block;">  {{item.goods_name}}</a>  
		            <div v-if="item.attrs" class="na-attr">{{item.attrs}}</div>    
		          <div class="s_left modify">   
		            <i class="icon iconfont icon-jianshao s_left" :data-id="idx" :data-goods_spec_id="item.goods_spec_id" :data-goods_id="item.goods_id"  @click='minus'></i>
		            <input style="margin-top: 2px;" type="number" catchtap="edit" @blur="changeCount" :data-goods_spec_id="item.goods_spec_id" :data-goods_id="item.goods_id" class="s_left txt-count" :data-id="idx" :value="item.count" maxlength="2" />  
		            <i class="icon iconfont icon-zengjia s_left" style="margin-top: 1px;" :data-id="idx" :data-goods_spec_id="item.goods_spec_id" :data-goods_id="item.goods_id"  @click='plus'></i>
		        </div>
		          <div class="s_right pri ">    <span>¥{{item.price}}</span>  </div> 
		          <div class='clear'></div>
		         
  			</div>

           </div>
		 <!-- goods-item -->
           
           </div>
          <div class="other-charge">
           <!-- 优惠 -->
            <div v-for="charge in shoppingCartList.other_charge"  class="clearfix packing-cost">
              <span class="s_left">{{charge.name}}</span>
              <span class="s_right boxtotalprice">{{charge.showPrice}}</span>
            </div>
            <!-- 优惠 -->
          </div>
        </div>
     </div>
          <div style="height: 50px"></div>
<div class="goods-bottom background_color_3 color_3">
      
        <div class="icon iconfont icon-03 cart" bindtap="show_popup">
        <i class="icon iconfont icon-qicheqianlian-1-copy"></i>
        <span class="background_color_1 color_1 cartAll"  v-if="shoppingCartList.count>0">{{shoppingCartList.count}}</span> </div>
      
    <div class="goods-bottom-left"> <div v-if="shoppingCartList.total_price>0"> 合计：¥ <span id="priceAll">{{shoppingCartList.total_price}}</span> </div> </div>
   <!-- <div class="goods-bottom-right btn2" bindtap="settle_accounts">去结算</div> -->
    <div :class="shoppingCartList.next ? 'goods-bottom-right btn2': 'goods-bottom-right btn2 disabled'" @click="settle_accounts">{{shoppingCartList.nextText?shoppingCartList.nextText:'loading...'}}</div>

</div>
  

      
</div>